home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 946 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news.ust.hk!cs_alaw
  2. From: cs_alaw@ug.cs.ust.hk (Law Look Tend)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help!! Visual C++ Linking
  5. Date: 8 Jan 1996 16:12:04 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4crfok$fqa@news.ust.hk>
  8. NNTP-Posting-Host: csl3su12.cs.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I am using Visual C++ 2.0, and I try to compile a simple .cpp program, which
  12. I wrote in Visual C++ 1.0 and can compile and run perfectly.  But the
  13. following message appear when build .exe file:
  14.  
  15.  
  16. Incrementally linking...
  17. LINK : performing full link
  18. LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol "_main"
  19. CLOCK.exe : error LNK1120: 1 unresolved externals
  20. Error executing link.exe.
  21. Creating browse info file...
  22. CLOCK.exe - 2 error(s), 0 warning(s)
  23.  
  24.  
  25. where "CLOCK.cpp" is my original file.
  26. Could anyone tell me what to do to fix such problem??
  27.  
  28. Thanks a lot.
  29.  
  30.  
  31. --
  32. cs_alaw@ug.cs.ust.hk            #
  33. -----------------------           # #    #    #   #####   ####   #    #   #   #
  34. Hong Kong University of       #   #   ##   #     #    #    #  ##   #    # #
  35. Science and Technology         #     #  # #  #     #    #    #  # #  #     #
  36. ----------------------         #######  #  # #     #    #    #  #  # #     #
  37.                      #     #  #   ##     #    #    #  #   ##     #
  38.                  #     #  #    #     #     ####   #    #     #
  39.  
  40.